#ifndef __KillCockroachs__StunImpediments__
#define __KillCockroachs__StunImpediments__

#include "cocos2d.h"
#include "cocos-ext.h"
#include "Impediments.h"

USING_NS_CC;
USING_NS_CC_EXT;

class StunImpediments : public Impediments
{
public:

	/// 
	/// Khoi tao gia tri ban dau cho StunImpediments
	/// 
	/// random phan loai, gan gia tri = 0 cho mAppear va mBroken
	/// 
	///
	/// @author 
	/// time_create:
	/// time_end:
	///
	StunImpediments();

	/// 
	/// Khoi tao gia tri ban dau cho StunImpediments
	/// type: loai cua vat can
	/// 
	/// gan gia tri mType = type, = 0 cho mAppear va mBroken
	/// 
	///
	/// @author
	/// time_create:
	/// time_end:
	///
	StunImpediments(int type);

	/// 
	/// Khoi tao gia tri ban dau cho StunImpediments
	/// type: loai cua vat can
	/// point: toa do cua vat can
	/// 
	/// gan gia tri mType = type, = 0 cho mAppear va mBroken, Position = point
	/// 
	///
	/// @author
	/// time_create:
	/// time_end:
	///
	StunImpediments(CCPoint &point, int type);

	/// 
	/// set stun
	/// stun: gia tri can gan cho mStun 
	///
	/// gan gia tri mStun = stun
	/// 
	///
	/// @author 
	/// time_create:
	/// time_end:
	///
	void fSetStun(int stun);

	/// 
	/// get stun
	/// 
	/// tra ve gia tri mStun
	/// 
	///
	/// @author 
	/// time_create:
	/// time_end:
	///
	int fGetStun();

	/// 
	/// effects stun
	/// 
	/// hieu ung choang
	/// 
	///
	/// @author 
	/// time_create:
	/// time_end:
	///
	void fEffectsStun();

	/// 
	/// effects shock
	/// time: thoi gian choang 
	///
	/// tra ve hieu ung lam choang nguoi choi
	/// 
	///
	/// @author 
	/// time_create:
	/// time_end:
	///
	CCActionInterval* fEffectsShock(float time);

private:
	int mStun; //gay choang
};

#endif //vat can gay choang